<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/demo/carrierapproval/carrierapproval.jsx此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/demo/carrierapproval/carrierapproval.jsx";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'CarrierApprovalId',
            footer: "Foots",
            cnName: '承运合同审批',
            name: 'carrierapproval/carrierapproval',
            url: "/approval-read/api/carrierapproval/",
            sortName: "CreateDate"
        });
        const editFormFields = ref({});
        const editFormOptions = ref([]);
        const searchFormFields = ref({});
        const searchFormOptions = ref([]);
        const columns = ref([{ field: 'CarrierApprovalId', title: '承运合同审批ID', type: 'string', width: 110, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'CarrierContractNumber', title: '合同编号', type: 'string', width: 110, align: 'left', sort: true },
        { field: 'CarrierContractTitle', title: '合同标题', type: 'string', width: 120, align: 'left' },
        { field: 'Name', title: '承运单位', type: 'string', width: 110, align: 'left' },
        { field: 'CoordinationName', title: '承运负责人', type: 'string', width: 110, align: 'left' },
        { field: 'LineName', title: '线路', type: 'string', width: 110, align: 'left' },
        { field: 'TonFreightPrice', title: '吨运价', type: 'decimal', width: 110, align: 'left' },
        { field: 'CharterTonnage', title: '包车条件吨位', type: 'int', width: 110, align: 'left' },
        { field: 'CharterPrice', title: '包车金额', type: 'decimal', width: 110, align: 'left' },
        { field: 'SignedDate', title: '签订日期', type: 'datetime', width: 150, align: 'left', sort: true },
        { field: 'HandlerName', title: '经办人', type: 'string', width: 110, align: 'left' },
        { field: 'CarrierContractPrice', title: '合同金额', type: 'decimal', width: 110, align: 'left' },
        { field: 'CarrierContractContent', title: '合同标的或项目说明', type: 'string', width: 120, align: 'left' },
        { field: 'CarrierContractAlter', title: '合同主要条款/变更条款', type: 'string', width: 120, align: 'left' },
        { field: 'CarrierContractText', title: '合同文本（附件）', type: 'string', width: 120, align: 'left' },
        { field: 'CreateName', title: '创建人', type: 'string', width: 110, align: 'left' },
        { field: 'CreateDate', title: '创建时间', type: 'datetime', width: 150, align: 'left', sort: true },
        { field: 'UpdateName', title: '修改人', type: 'string', width: 110, align: 'left' },
        { field: 'UpdateTime', title: '修改时间', type: 'datetime', width: 150, align: 'left', sort: true },
        { field: 'CarrierContractState', title: '状态', type: 'int', width: 110, align: 'left' },
        { field: 'ApprovalName', title: '审批人', type: 'string', width: 110, align: 'left' },
        { field: 'IsDel', title: '逻辑删除', type: 'int', width: 110, align: 'left' },
        { field: 'ApprovalContent', title: '审批备注', type: 'string', width: 120, align: 'left' }]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>
